import Vue from "vue";
import Vuex from "vuex";

Vue.use(Vuex);

export default new Vuex.Store({
  state: {
    wuJi_page: 1,
    wujiid: 0,
    a: 0,
    notice: '',
    noticecon: {},
    headurl: require('../assets/images/head.png'),
    noDo: 0,
    creater: 0,
    ziduan:'',
    goProblem: '',
    goHandle: { a: 1 }
  },
  getters: {},
  mutations: {
    setid(state, value) {
      state.wujiid = value;
    },
    setA(state, value) {
      state.a = value;
    },
    changge(state, v) {
      state.notice = v
      // console.log(5, state.notice)
    },
    noticechange(state, v) {
      state.noticecon = v
      // console.log(state.noticecon)
    },
    changehead(state, v) {
      state.headurl = v
      // console.log(state.headurl)
    },
    changeNoDo(state, v) {
      state.noDo = v
    },
    changeCreater(state, v) {
      state.creater = v
    },
    changeZiduan(state,v){
      state.ziduan=v},
    chagngeProblem(state, v) {
      state.goProblem = v
    },
    changeHandle(state, v) {
      state.goHandle = v
    },
    euJi_page(state, v) {
      state.wuJi_page = v
    }
  },
  actions: {},
  modules: {},
});
